﻿using Compass.Wasm.Shared;
using Microsoft.EntityFrameworkCore.Design;

namespace Compass.PurchaseService.Infrastructure;

public class DesignTimeDbContextFactory : IDesignTimeDbContextFactory<PurchaseDbContext>
{
    public PurchaseDbContext CreateDbContext(string[] args)
    {
        var optionBuilder = DbContextOptionsBuilderFactory.Create<PurchaseDbContext>();
        return new PurchaseDbContext(optionBuilder.Options, null);
    }
}